<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="updateUrl" value="${contextPath}/portal/web/info/updateBasicAppDetail" scope="application"/>
	<div class="op_title">
		<div class="fl">
			<span class="W_f14 W_fb">应用状态</span>
		</div>
	</div>
	<!-- 流程 -->
	<div class="op_process clearfix" style="margin-top: 15px;margin-bottom: 25px;">
		<c:choose>
           		<c:when test="${appDetailsDto.status == 0 || appDetailsDto.status == 1}">
           			<div id="n1"  class="op_app_progress  n4 p2 ">
						<ul class="step">
							<li class="no4 last"><span>上线</span></li>
							<li class="no3"><span>审核</span></li>
							<li class="no2"><span>开发</span></li>
							<li class="no1"><span>申请</span></li>   
						</ul>
			        </div>
           		</c:when>
           		<c:when test="${appDetailsDto.status == 2}">
           			<div id="n1"  class="op_app_progress  n4 p3 ">
						<ul class="step">
							<li class="no4 last"><span>上线</span></li>
							<li class="no3"><span>审核</span></li>
							<li class="no2"><span>开发</span></li>
							<li class="no1"><span>申请</span></li>   
						</ul>
			        </div>
           		</c:when>
           		<c:when test="${appDetailsDto.status == 3}">
           			<div id="n1"  class="op_app_progress  n4 p4 ">
						<ul class="step">
							<li class="no4 last"><span>上线</span></li>
							<li class="no3"><span>审核</span></li>
							<li class="no2"><span>开发</span></li>
							<li class="no1"><span>申请</span></li>   
						</ul>
			        </div>
           		</c:when>
           	</c:choose>
		<c:choose>
			<c:when test="${appDetailsDto.status == 0}">
				<a href="javascript:;" class="W_btnM_c W_btnM_c_dis" ><span>提交审核</span></a>
			</c:when>
			<c:when test="${appDetailsDto.status == 1}">
				<a href="${contextPath}/portal/web/updateAppStatus?appId=${appDetailsDto.appId}&status=2" class="W_btnM_c W_btnM_c_dis" ><span>提交审核</span></a>
			</c:when>
			<c:otherwise>
			</c:otherwise>
		</c:choose>
	</div>
	<div class="op_tips W_borb state_tips_box"> 
		<span class=" tips_icon icon_warn"></span>
        <dl class="tips_list clearfix">
          <p>
            	<c:choose>
            		<c:when test="${appDetailsDto.status == 0 }">
            			<span class="W_f14">尚未提交审核，您还需要：完善应用信息</span>
            		</c:when>
            		<c:when test="${appDetailsDto.status == 1}">
            			<span class="W_f14">尚未提交审核</span>
            		</c:when>
            		<c:when test="${appDetailsDto.status == 2}">
            			<span class="W_f14">你的应用<em class="app">"${appDetailsDto.webName}"</em>来源审核中</span>
            			<span class="martop1">审核结果将在一个工作日内反馈（如遇特殊情况，审核周期将会相应延长）</span>
            		</c:when>
            		<c:when test="${appDetailsDto.status == 3}">
            			<span class="W_f14">已通过审核</span>
            		</c:when>
            	</c:choose>
             </p>                                                   
         </dl>
    </div>
	<div id ="showZone" node-type="showZone" >
		<div class="op_title">
			<div class="fl">
				<span class="W_f14 W_fb">应用基本信息</span>
			</div>
			<div class="fr">
				<a href="javascript:;" node-type="editBtn" class="op_title_btn" >
					<span  onclick="changePageInformation()">编辑</span>
				</a>
			</div>
		</div>
		<div class="info_form form_table">
			<dl class="clearfix">
				<dt>网站名称：</dt>
				<dd class="conbox">${appDetailsDto.webName}</dd>
			</dl>
			<dl class="clearfix">
				<dt>网站域名：</dt>
				<dd class="conbox">${appDetailsDto.webDomains}</dd>
			</dl>
			<dl class="clearfix">
				<dt>网站备案信息：</dt>
				<dd class="conbox">
					<c:choose>
						<c:when test="${appDetailsDto.webRecord != null}">
							${appDetailsDto.webRecord}
						</c:when>
						<c:otherwise>
							未填写
						</c:otherwise>
					</c:choose>
				</dd>
			</dl>
			<dl class="clearfix">
				<dt>网站简介：</dt>
				<dd class="conbox">
					<c:choose>
						<c:when test="${appDetailsDto.appProfile != null}">
							${appDetailsDto.appProfile}
						</c:when>
						<c:otherwise>
							未填写
						</c:otherwise>
					</c:choose>
				</dd>
			</dl>
			<dl class="clearfix">
				<dt>网站介绍：</dt>
				<dd class="conbox">
					<c:choose>
						<c:when test="${appDetailsDto.appDescribe != null}">
							${appDetailsDto.appDescribe}
						</c:when>
						<c:otherwise>
							未填写
						</c:otherwise>
					</c:choose>
				</dd>
			</dl>
		</div>
	</div>
	<!--showZone-->
	<!--editZone-->
	<div id ="editZone" node-type="editZone" style="display: none">
		<form id="basicForm" >
            <input id="webNameNow" name="webNameNow" value="${appDetailsDto.webName}" type="hidden">
            <input id="appId" name="appId" value="${appDetailsDto.appId}" type="hidden">
            <input  name="status" value="${appDetailsDto.status}" type="hidden">
			<div class="op_title">
				<div class="fl">
					<span class="W_f14 W_fb">应用基本信息</span>
				</div>
				<div class="fr"></div>
			</div>
			<div class="info_form form_table">
					<dl class="clearfix">
						<dt>网站名称：</dt>
						<dd class="conbox">
							<input id="webName" name="webName" value="${appDetailsDto.webName}"/>
						</dd>
					</dl>
					<dl class="clearfix">
						<dt>网站域名：</dt>
						<dd class="conbox">
							<input  name="webDomains" value="${appDetailsDto.webDomains}" />
						</dd>
					</dl>
					<dl class="clearfix">
						<dt>网站备案信息：</dt>
						<dd class="conbox">
							<input  name="webRecord" value="${appDetailsDto.webRecord}" />
						</dd>
					</dl>
					<dl class="clearfix">
						<dt>创建时间：</dt><dd class="conbox">${appDetailsDto.createTime}</dd>
					</dl>
					<dl class="clearfix">
	                          <dt>网站简介：</dt>
	                          <dd class="conbox">
	                          <input class="W_inputStp" name="appProfile" checktype="short_desc" value="${appDetailsDto.appProfile}" type="text"></dd>
	                          <dd data-tipsmsg="用于行为动态模块中应用介绍，应用授权页等，不超过15个汉字" class="tipbox warn_pos_2" tipscheck="short_desc"><div class="M_notice_warn">用于行为动态模块中应用介绍，应用授权页等，不超过15个汉字</div></dd>
	                      </dl>
	                      <dl class="clearfix">
	                         <dt>网站介绍：</dt>
	                          <dd class="conbox">
	                          <textarea class="W_inputStp T_area" name="appDescribe" checktype="appIntro" >${appDetailsDto.appDescribe}</textarea>
	                          </dd>
	                          <dd data-tipsmsg="简述应用的作用、使用方法等信息，将显示在应用广场中，不超过1000汉字" class="tipbox" tipscheck="appIntro">
	                              <div class="M_notice_warn">简述应用的作用、使用方法等信息，将显示在应用广场中，不超过1000汉字</div>
	                          </dd>
	                      </dl>
				</div>
				<div class="info_form info_form_last form_table" style="padding-left:20%;">
					<dl class="p_btn clearfix">
						<dt>&nbsp;</dt>
						<dd class="conbox">
							<button type="submit" class="W_btn_b"><span>提交</span></button>
            				<button type="button" onclick="changePageInformation()" class="W_btn_a"><span>取消</span></button>
						</dd>
						<dd class="tipbox warn_pos_2">
							<div class="M_notice_warn">该应用如果已经通过审核，修改需再次审核后方能生效！</div>
						</dd>
					</dl>
				</div>
			</form>
	</div>
	<!--/右侧结束-->
	<script type="text/javascript" src="${contextPath}/resources/basicInfoJS/portal/application.js" ></script>
	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {
			checkAppForm("basicForm","${contextPath}/portal/web/checkWebName","${updateUrl}");
			$("body").removeClass().addClass("B_op_info");
		});
	</script>

